/*
 * 	Description: This fuction prints out |/-\ and flushes out at the same time making curser spinning.
 */
#include <stdio.h>

void spin(int counter){
	char cursor[4] = {'/','-','\\','|'};
	prinf("%c\b", cursor[counter]);
	fflush(stdout);
}

int main(int argc, char **argv){
	int counter = 0;
	while(1){
		spin(0);
		counter = (counter+1)%4;
		sleep(200);
	}
	return 0;
}
